I'm developing an app that I'm testing on various devices. My UI includes a SeekBar with limits of 0 to 4. On other devices, the SeekBar behaves as expected. On the Nexus 10, it is very hard to change the value of the bar. I haven't been able to find any references to the problem. Is this a known issue on the Nexus 10? If so, are there any workarounds?
Here is the LinearLayout containing the SeekBar:
<LinearLayout
android:id="@+id/movement_mode_container"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="10dp"
androidrientation="vertical" >
<ImageView
android:id="@+id/movement_mode_icon"
android:src="@drawable/walking"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
<SeekBar
android:id="@+id/movement_mode_slider"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
androidrogress="2"
android:max="4" />
</LinearLayout>
Thanks
Poor SeekBar response, Nexus 10
I found a workaround: apparently the tablet doesn't like a SeekBar with a small range of integer values. I changed the max from 4 to 40 and calculated the 0-4 value based on the 0-40 value. Now it works smoothly on the Nexus 10, with no new problem on smaller devices.
Related
In many application popups, such as the XKCD Browser's "Hint" function (to show the alt-text), most of the dialog box's text is invisible [see attached photo].
Does anyone know why that is? Is there some kind of "white on white" problem? If so, can I modify such popups system-wide?
Running TouchNooter 2.1.31 over Nook 1.1.0 firmware on Nook Simple Touch (N2E)
I am also seeing this quite often. For example on the intent dialogue the "always open with this application" text is invisible (you only see the checkbox).
The XKCD and the "always open" dialog are two separate, but related issues.
It's the clash of frameworks, themes and styles.
For XKCD, I'd take it apart using apktool and fix it so that the text is black.
For "always open", the problem is that they got fancy inserting the option
and they didn't leave space for it in the dialog.
That needs to get fixed in framework-res.apk.
I have a similar white on white problem with submenus in Goldendict. It could be fixed in the res of the goldendict .apk, but after decompiling/recompling and signing, the resulting .apk will install, but gives errors during usage due to "corruption."
As an alternative approach, what specifically would I need to change in the framework-res.apk in order to fix the problem. Is there some style I could modify to adjust the text color in the framework-res.apk?
This is the responsible code from the goldendict apk that is producing the white-on-white problem.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textAppearance="?android:textAppearanceLarge" android:id="@id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0px" android:text="@string/from" />
<GridView android:id="@id/fromGrid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="10.0px" android:listSelector="@android:color/transparent" android:columnWidth="50.0sp" android:numColumns="auto_fit" android:layout_weight="1.0" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:id="@id/textView2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0px" android:text="@string/to" />
<GridView android:id="@id/toGrid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="10.0px" android:listSelector="@android:color/transparent" android:columnWidth="50.0sp" android:numColumns="auto_fit" android:layout_weight="1.0" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:id="@id/switchToRecentPairs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0px" android:text="@string/switch_to_recent_pairs" />
</LinearLayout>
I just logged on here to report this same problem, but I wasn't sure if it was a white-on-white problem or a missing font problem. Would be really great if someone could fix this globally, although I suspect there's nothing you can do globally to fix a hard-coded colour (I may be wrong). App developers should never use a hard-coded colour, its a sloppy design practice.
Im trying to create a simple app,which loads an image and displays it in an imageview and there is a scroll bar and button below.But after loading large images the image covers up the scroll bar and the button.Tried using different settings with each view's layout but nothing worked.What i want is the image should be displayed in the imageview placed at a fixed location the position of imageview should not be changed neither its size,im quite new to android development im looking for a property like strech in c# which stretches or reduces the size of the images so that it fits in the imageview
Can some one help me,posting the code from main.xml below
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="link"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<ImageView
android:id="@+id/imageView1"
android:layout_width="302dp"
android:layout_height="355dp"
android:src="@drawable/jellyfish" />
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="262dp"
android:layout_height="wrap_content" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
android:onClick="clickme"
/>
</LinearLayout>
ImageView has android:scaleType="some_scale_type" property, that does exactly what you require. You can stretch, keep original size or fill available area. There's a problem with you layout, though. Why do you use these absolute values? You know they will look ugly on devices with different DPI/screen sizes, not to mention orientation change?
Good afternoon ladies and gents.
I have been scouring the internets for a solution for this problem to no avail. I have been able to theme my Google Play Edition GS4 running stock 4.3 almost to perfection to look like KitKat. The only part that is killing me is the Navigation bar transparency. I can get it transparent with Gravity Box, but it is half transparent, half black. The half black bar, as you can see, really ruins the entire look of the home screen.
From what I can deduce, it is a launcher issue because when I scroll over to Google Now, it is full screen all the way down to the bottom of the nav bar. I have tried, with my limited knowledge of coding, to decompile the Google Home Launcher apk, but it looks like it is just an overlay for the main Android launcher; Launcher2.apk. I also decompiled that apk, but as I said, I have VERY limited knowledge of what I am even looking at. I made some blind modifications to a few thing I thought might fix the issue, but they didn't work.
This is slowly killing me. If there are any experienced modders that can help me out, I would really appreciate it. I know there are many other folks looking for a fix for this as well.
:good:THANKS!! :good:
P.S. I forgot to mention that it is not a wallpaper size issue either. I have tried many wallpaper setting apps that fit the wallpaper to the screen size with the same results.
comoc85 said:
Good afternoon ladies and gents.
I have been scouring the internets for a solution for this problem to no avail. I have been able to theme my Google Play Edition GS4 running stock 4.3 almost to perfection to look like KitKat. The only part that is killing me is the Navigation bar transparency. I can get it transparent with Gravity Box, but it is half transparent, half black. The half black bar, as you can see, really ruins the entire look of the home screen.
From what I can deduce, it is a launcher issue because when I scroll over to Google Now, it is full screen all the way down to the bottom of the nav bar. I have tried, with my limited knowledge of coding, to decompile the Google Home Launcher apk, but it looks like it is just an overlay for the main Android launcher; Launcher2.apk. I also decompiled that apk, but as I said, I have VERY limited knowledge of what I am even looking at. I made some blind modifications to a few thing I thought might fix the issue, but they didn't work.
This is slowly killing me. If there are any experienced modders that can help me out, I would really appreciate it. I know there are many other folks looking for a fix for this as well.
:good:THANKS!! :good:
P.S. I forgot to mention that it is not a wallpaper size issue either. I have tried many wallpaper setting apps that fit the wallpaper to the screen size with the same results.
Click to expand...
Click to collapse
try Nova Launcher it offers fully transparent bar...
ongbac said:
try Nova Launcher it offers fully transparent bar...
Click to expand...
Click to collapse
Nova doesn't have the same features that the Google Home launcher has like hot word detection from home screen or swipe right to show Google Now.
I have found the code in my SystemUI.apk that I think will change the layout of the nav bar, but as I am new to xml coding, I'm not 100% sure what I'm looking at. Any help?
Code:
<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:src="@drawable/ic_sysbar_menu_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_recent_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_home_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/lights_out" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:layout_marginTop="40.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:layout_marginBottom="40.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
</LinearLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center_vertical" android:id="@id/search_light" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/search_light" android:scaleType="center" />
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id="@id/deadzone" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="vertical" />
</FrameLayout>
<View android:id="@id/rot270" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.NavigationBarView>
transparent status bar not working using gravity box( xposed framework)
comoc85 said:
Nova doesn't have the same features that the Google Home launcher has like hot word detection from home screen or swipe right to show Google Now.
I have found the code in my SystemUI.apk that I think will change the layout of the nav bar, but as I am new to xml coding, I'm not 100% sure what I'm looking at. Any help?
Code:
<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:src="@drawable/ic_sysbar_menu_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_recent_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_home_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/lights_out" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:layout_marginTop="40.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:layout_width="fill_parent" android:layout_height="80.0dip" android:layout_marginBottom="40.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
</LinearLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center_vertical" android:id="@id/search_light" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/search_light" android:scaleType="center" />
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id="@id/deadzone" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="vertical" />
</FrameLayout>
<View android:id="@id/rot270" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.NavigationBarView>
Click to expand...
Click to collapse
i m running cyanogen mod 10.2(4.3.1) samsung galaxy s3 i9300 and i m getting the transparent status on the locksreen but not on the homescreen, i m using gravity box and xposed installer
and i too really like the hotword feature of google on the homescreen , could you tell me how i could get it on my phone
can anybody help me to give instruction how to change text color and clock color on hyperion 9 lockscreen?
no respond
decompile framework-res.apk
look at keyguard_screen_lock.xml in layout
Code:
<TextView android:textSize="34.0sp" android:gravity="center" android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="18.0sp" android:gravity="center" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" />
you can try adding color
Code:
android:textColor="#ffffffff"
to it (in this case the hex value is white)
so it looks like
Code:
<TextView android:textSize="34.0sp" android:gravity="center" android:textColor="#ffffffff" android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="18.0sp" android:gravity="center" android:textColor="#ffffffff" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" />
see what happens
you will have to work out xmls yourself - do some searching - its the best and fastest way to solve something because you will be waiting days and days for an answer like this that google could tell you in a few secs
marcussmith2626 said:
decompile framework-res.apk
look at keyguard_screen_lock.xml in layout
Code:
<TextView android:textSize="34.0sp" android:gravity="center" android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="18.0sp" android:gravity="center" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" />
you can try adding color
Code:
android:textColor="#ffffffff"
to it (in this case the hex value is white)
so it looks like
Code:
<TextView android:textSize="34.0sp" android:gravity="center" android:textColor="#ffffffff" android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="18.0sp" android:gravity="center" android:textColor="#ffffffff" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" />
see what happens
you will have to work out xmls yourself - do some searching - its the best and fastest way to solve something because you will be waiting days and days for an answer like this that google could tell you in a few secs
Click to expand...
Click to collapse
thank you for your respond
i have tried it and nothing happen to my lockscreen, the color does not change
that's why i ask how to change the color to this forum, i have tried any ways to change the color and nothing happen to my lockscreen
darkterro said:
thank you for your respond
i have tried it and nothing happen to my lockscreen, the color does not change
that's why i ask how to change the color to this forum, i have tried any ways to change the color and nothing happen to my lockscreen
Click to expand...
Click to collapse
look in styles.xml and try and find the style for the date and time ids and see if it has a color
Hey folks, this could be a problem with the way I'm handling layouts, or not. Sort of new to Java and Android SDK.
My goal at this point is to have an app going which has the screen showing a navigation bar at the bottom with an icon, and a toolbar at the top with an "OFF" button and a "Save" button. Between the toolbar and the navigation bar should be a blank, white screen.
But I'm having trouble getting the toolbar to just stay at the top of the screen. The grey background takes up the entire screen in front of what was the white background. A picture of the screenshot is attached.
And here's what I have:
Code:
<RelativeLayout xmlns:android="schemasdotandroiddotcom/apk/res/android"
xmlns:tools="schemasdotandroiddotcom/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ContactActivity">
<RelativeLayout
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@color/toolbar_background">
<ToggleButton
android:id="@+id/toggleButtonEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentleft="true"
android:layout_marginLeft="20dp"
android:text="@string/toggle_button" />
<Button
android:id="@+id/buttonSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:text="Save" />
<RelativeLayout
android:id="@+id/navbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@color/navbar_background"
android:gravity="center_horizontal">
<ImageButton
android:id="@+id/imageButtonList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="20dp"
android:contentDescription="Contact List Button"
android:src="@drawable/contactlisticon" />
<ImageButton
android:id="@+id/imageButtonMap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRight0f="@id/imageButtonList"
android:contentDescription="Contact Map Button"
android:src="@drawable/mapicon" />
<ImageButton
android:id="@+id/imageButtonSettings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:contentDescription="Settings Button"
android:layout_toRight0f="@id/imageButtonMap"
android:src="drawable/settingsicon" />
</RelativeLayout>
Thanks for your help! Sorry if I gave any code that wasn't necessary.