android-fullscreen

How to show imageView full screen on imageView click?

狂风中的少年 提交于 2019-11-27 17:27:26
I am getting images from url and showing it on the imageView. This functionality is working properly. But I want that when I click on that image, then it must be full screen. So how to achieve this functionality? I know I am missing something. Please help me. Screenshot is attached. I want the same functionality in my app also. Here is my code, which I am trying on Image click: @Override public void onClick(View v) { if (isTouch1) { horizontalScrollView.setVisibility(View.GONE); isTouch1 = false; // mSystemUiHider.toggle(); setTheme(R.style.FullscreenTheme); Log.d("Here isTouch is true", ">");

Android: making a fullscreen application

我只是一个虾纸丫 提交于 2019-11-27 11:33:44
What is the simplest change that I can make to a new Blank Activity, as created by the latest version of Android Studio, to get the app to appear fullscreen? I want to create a fullscreen Android application. I'm working with Android Studio. This post suggests that I add a line such as ... android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen" ... to the AndroidManifest.xml file, as shown below: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.lexogram.james.blackslate" > <application android:allowBackup=

Make a SurfaceView larger than the screen (Fitting a camera preview to a SurfaceView larger than the display)

北慕城南 提交于 2019-11-27 11:15:33
I have a custom camera application and I want for any preview sizes to display it in full screen mode without stretching the camera preview image. For this, I need to make the surfaceView larger than the screen in order to keep aspect ratio, so actually the user will see less than camera actually captures. For some reason, I cannot make the SurfaceView larger than the screen size. What I've tried so far: resize camera preview in surfaceChanged method resize camera preview in on onMeasure method resize it in in onLayout method adding FLAG_LAYOUT_NO_LIMITS to activity - info adding android:

About the Full Screen And No Titlebar from manifest

只愿长相守 提交于 2019-11-27 08:12:17
I want to set my application to full screen view. I got the idea to set it in an individual activity using FullScreen and NoTitlebar , but i want to set it in my Manifest XML file for the whole application not for each activity... Is this possible? Help me... Thanks. To set your App or any individual activity display in Full Screen mode, insert the code <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> in AndroidManifest.xml, under application or activity tab. Another way: add windowNoTitle and

Android make a dialog appear in fullscreen

為{幸葍}努か 提交于 2019-11-27 01:19:16
问题 I need the dialog to fill the screen except for some space at the top and the bottom. I've search for a solution but couldn't find one probably because I'm declaring it in an onClickListener . Can someone please give a solution? Activity code: sort.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub AlertDialog.Builder sort = new AlertDialog.Builder(HomeScreen.this); // Get the layout inflater LayoutInflater inflater =

Immersive mode navigation becomes sticky after volume press or minimise-restore

时光总嘲笑我的痴心妄想 提交于 2019-11-27 00:15:10
public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { this.getWindow().getDecorView().setSystemUiVisibility(getSystemUiFlags()); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } private static int getSystemUiFlags() { return View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION; } } After first start After volume buttons pressed or after recent apps pressed twice I saw

Make a SurfaceView larger than the screen (Fitting a camera preview to a SurfaceView larger than the display)

∥☆過路亽.° 提交于 2019-11-26 22:20:10
问题 I have a custom camera application and I want for any preview sizes to display it in full screen mode without stretching the camera preview image. For this, I need to make the surfaceView larger than the screen in order to keep aspect ratio, so actually the user will see less than camera actually captures. For some reason, I cannot make the SurfaceView larger than the screen size. What I've tried so far: resize camera preview in surfaceChanged method resize camera preview in on onMeasure

full screen application android

怎甘沉沦 提交于 2019-11-26 20:57:00
问题 i have two questions: one how can i run my application in full screen how video players run videos in full screen. i have tried alot and still struggling to achieve this but couldn't find a solution. the list of solution i found but they are not fulfilling my requirements this hides only the notification bar. requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); also hides only the

setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) does not work

∥☆過路亽.° 提交于 2019-11-26 16:21:23
问题 I've been battling with setSystemUiVisibility() to try to hide the soft navigation buttons for a while (for a video player). It does not seem to work as advertised. Here is my code, inside a visible FrameLayout . void setNavVisibility(boolean visible) { int newVis = SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; if (!visible) { newVis |= SYSTEM_UI_FLAG_LOW_PROFILE | SYSTEM_UI_FLAG_HIDE_NAVIGATION; } setSystemUiVisibility(newVis); } Slightly modified from the SDK example: void setNavVisibility(boolean

Android: making a fullscreen application

最后都变了- 提交于 2019-11-26 15:37:37
问题 What is the simplest change that I can make to a new Blank Activity, as created by the latest version of Android Studio, to get the app to appear fullscreen? I want to create a fullscreen Android application. I'm working with Android Studio. This post suggests that I add a line such as ... android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen" ... to the AndroidManifest.xml file, as shown below: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas