Tagged Questions
-1
votes
1answer
45 views
How to show Hindi(non-english) webpages using web view in android application
I am developing an android application where I need to load a URL which contains the Hindi fonts in web view.
I used the following code for this:
WebView webView = (WebView) ...
0
votes
1answer
20 views
How to set the cusror mark when we stayed what being typed on orientation changed?
I have the EditText and some sentences have been wriiten after that when I changed the orientation then Cursor mark is started from the beginning ?
<EditText
...
0
votes
0answers
14 views
Back Stack in fragments using Tabs in Action Bar in Android
I am developing an application which have following requirements:
1) App has few tabs and each tab has multiple activities.
2) There should be proper back navigation to make the application user ...
0
votes
1answer
24 views
Bottom tabs in the Android 4 or later as in iPad application
I am developing an android application which is the iPhone version for Android devices and this iPhone application has the bottom tabs.
These types of tabs are present in the many iPhone ...
0
votes
1answer
50 views
Designing a layout for a widget
Can someone guide me as to how to design a layout for a widget as shown in the attached image
The starred portion would be a thumbnail image of a celebrity
The portion above and below the diagonal ...
1
vote
1answer
65 views
How can I change a TextView's font programmatically in a RemoteView?
Is there a way to programmatically change the font family of a textview in a widget? I just want to use the system fonts (Roboto Thin, Condensed, etc.), not any custom fonts.
0
votes
0answers
39 views
How to add LinearLayout into RemoteViews - Android?
I am struggling with one annoying problem. I want to create LinearLayout with TextView and after add it to the widget's RemoteViews. However, each time when I am trying to add it I have -1 id on ...
0
votes
2answers
35 views
Use onOptionsItemSelected with a button in layout
I trying to personalize the Android tutorial about Layout Changes (http://developer.android.com/training/animation/layout.html), but in the code there is this code
public boolean ...
0
votes
2answers
61 views
Android how to programatically create scrollview and add programatically created views into it
Alright I'm trying to build an activity that has a horizontal scrollview, that the user can swipe through, to view different "pages". My train of thought is these "pages" will be views. The ...
0
votes
2answers
115 views
Adding and Removing Dynamic Buttons From one activity to another activity in android on click of button from previous activity button click
I want to develop a similar kind of app(link below)
How to create Button Dynamically in android?
But at the same time I want to display this in another activity and not in the same activity.
there are ...
0
votes
0answers
89 views
Integrating widget code in AppInventor decompiled code
I frequently use the MIT AppInventor, as I am not too used to Java, but it lacks features.
So can anybody tell me how, if I want to add homescreen widget or a system service into my app, how do I do ...
0
votes
1answer
42 views
widget initialLayout not displaying - android
My application widgets work on my phone and my friends' devices too.
But some user on google play complaint about widgets not working.
Please help me in finding out what is going wrong?
Customer ...
0
votes
0answers
34 views
Default context menu not black “settings”
Im running with <uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="17" />
why am i seeing this kind of context menu
and im unable to get the one which slides like ...
7
votes
2answers
199 views
Tabbed dialog with fragments in widget
I am working on widget, where for widget settings i am looking to provide a dialog for with tab fragment, the problem is dialog do not have action bar tabs, i have tried various lay out patterns, but ...
4
votes
1answer
46 views
Widget is stretch in home screen.
I have use below code.
In my manifest file.
<receiver android:name=".ButtonWidget" android:label="@string/app_name">
<intent-filter>
<action ...
0
votes
0answers
96 views
Reset the layout parameters of a programmatically modified widget (e.g. textview) from the xml file
I have a simple enough question:
If I modify a widget (e.g.) textview by changing something programmitically (e.g. the text and background colour), how do I reset it to what was specified in the ...
1
vote
2answers
104 views
home screen widget text view not updating
This is the code of my program -
package com.nadeem.todos;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import ...
0
votes
0answers
124 views
How to change some widget style not app theme?
style.xml
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="DarkSherlockTheme" parent="Theme.Sherlock" />
<style name="LightSherlockTheme" ...
2
votes
0answers
86 views
pendingintent not working sometimes
I have a home screen widget which has text views. When I click on the text view my Main activity opens. I have set a PendingIntent on the text views.
Intent intent = new Intent(context, ...
1
vote
0answers
62 views
update multiple home screen widget from activity
I have 2 widgets on my home screen. I know how to update the single widget from my Main activity. The following code updates my single widget when i press the back button on my Main activity.
...
0
votes
2answers
107 views
android home screen widget layout change on click event
I am developing an android home screen widget for my ToDo app. It shows 3 Todos at a time on the widget layout. I mean my widget layout can accommodate only 3 TextViews.
Now, I have another ...
0
votes
0answers
26 views
Show a list of items in grid view for a android widget
I want to show a list of items in grid view for a android widget. I could do that for an Activity. But facing difficulty in implementing Grid view for widget as I am not allowed to use findViewById ...
0
votes
2answers
84 views
Launching android application from the web
I have an application installed on Android emulator The code is below When I'm launching the emulator, I'm typing to the browser "market.android.com" and I want my application to be launched, but it ...
1
vote
1answer
42 views
How can I lock whitespace characters from the text field in real time?
I have a login activity and I want to lock whitespace characters from the username textfield in real time. I mean not from the class. directly from the xml activity if is possible.
Thanks.
0
votes
1answer
150 views
How to DRAG/ MOVE a RelativeLayout in android
I am zooming a relative layout, but after zooming i am unable to drag or move the zoomed layout
this is my code to zoom the layout..plz help me to drag or move the zoomed layout
public class ...
0
votes
0answers
44 views
Android Widget - PLW From Changing Layout Via Config Activity
Ive created a config activity that changes a widget's layout if a string array id is selected. Problem is that I get random Problem Loading Widget errors after configuration of the widget.
Here's my ...
2
votes
0answers
110 views
How to implement PINCH ZOOM on a RelativeLayout in android
I have an XML and the total XML is to be pinch zoomedl. The XML has ImageView, TextView, ExpandabeleListView and so on.. Now i want to make all the content in that XML such as the image, text and the ...
-3
votes
2answers
94 views
Custom ListView without extending ListActivity [duplicate]
I am trying to create a simple android project which has a organisation (Of Activity XML)
|Image | Button | Button |
|Listview Row(Image + Text + Image) |
| Button |
The samples which I have seen ...
0
votes
3answers
81 views
Add EditText widget while app is running
I'm trying to add EditText widget while app is running, and I'm not sure how do it. I hope it is possible.
What I want to do is that the user will select one item from a spinner list and then an edit ...
0
votes
5answers
157 views
How to create a transparent Button?
I am trying to create a transparent Button. In details I set the background's button with an image and I would like to modify the transparency of the button in order to see the background layout's ...
0
votes
2answers
95 views
Andriod App Works on Mobile Device But not on Tablet Device
I have an application which works on Mobile Device ,But when i run the same application on Tablet Device,I'm not able to see my layout file?
Note:Not getting any Error
Update:I define my layout xml ...
0
votes
0answers
37 views
Application api - Generic method for touch event in the screen
Is there is any event available in Applicaiton api to capture the touch event in the screen. I want some generic method for capture the touchevent for the entire screen (which means menu, activity, ...
1
vote
1answer
546 views
Implement a Color Picker for Android Clock Widget
I have spent almost 10 days searching for a tutorial or any help describing how to add a colour picker to my Clock Widget.
My widget is a simple clock with 7 colours, but I want to make it completely ...
1
vote
2answers
725 views
Holoeverywhere : how to programmatically remove at runtime the action bar from an activity
Which is the correct way to remove the action bar inside an activity ?
My activity extends org.holoeverywhere.app.Activity
I've a custom Application class that extends ...
0
votes
3answers
243 views
Applying border and background image to Linear layout
I have linear layout in which i have to apply border,border radius and background image. I tried
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id$ -->
<shape
...
1
vote
1answer
114 views
How to nicely cut long text using Android canvas.drawText?
I'm developing my own custom control. It's rectangle with a text inside. Text could be longer then rectangle so I need to cut it. Please help me style clipped text to make it understandable that there ...
0
votes
0answers
244 views
HoloEverywhere : is tabs' swipe effect compatible with the sliding menu's swipe?
In the HoloEverywhere demo 1.5.0 there is a tabs+swipe example.
I see that the "sliding menu" effect (facebook app-like) has been disabled in this example (in the "Lists" examples it's enabled)
Has ...
1
vote
0answers
82 views
pass swipe event to view flipper inside a viewpager
how can i pass swipe events to viewflipper inside a view pager.
view fliper will swipe in vertical direction is this possible or I hv to use view pager inside a view pager with inside view pager in ...
0
votes
0answers
83 views
Capture the onclick event on DialogFragment
Can anybody knows how to capture the onclick event on DialogFragment. I need to reset the time if user click on the Dialog (CustomDialog which extends DialogFragment).
Thanks
Mindus
0
votes
2answers
292 views
Positioning Popup window in Android correctly
I'm stuck with the Popup window positioning. I'm showing my popup window on click of a Button. I want it should be positioned according to space available. Also if my button is at center it should be ...
1
vote
1answer
38 views
How to calculate home widget width
Is there any way to calculate home widget width at runtime. I want to add variable number of items(imageviews) based on it's width ,so I want to calculate widget's width in dp.
0
votes
0answers
44 views
Change values of widget layout from configuration activity
I have widget layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget_linear"
...
0
votes
0answers
49 views
For Preference, how to use setWidgetLayout(View) instead of setWidgetLayoutResource(layoutRes)?
As the title says, I need to dynamically change the view I give to the preference in its widgetLayout area, so that upon different states it would change.
I can ,of course, use a customized ...
0
votes
0answers
197 views
Android ImageButton: Trying to center a custom Drawable in the middle of an ImageButton
Okay, here we go...
I have created a custom Drawable class that will create a drawable with an icon and a number below it. The background of this drawable is Transparent.
I have ImageButtons that ...
0
votes
0answers
238 views
Android opening application settings not working on Android 4.1.1
I have used following code for opening application settings from my code and it worked fine on samsung galaxy tab.
private void showSettingsForPackage(String packageName) {
Intent intent = new ...
0
votes
0answers
69 views
Android - Handling touch event on menu item click
I want to handle the touch event on click of menu item in the menu, and on click of spinner text in the spinner and on select date or on click ok button in a date control. OnUserInteraction() method ...
0
votes
0answers
58 views
Handling touch event on menu item click
I want to handle the touch event on click of menu item in the menu, and on click of spinner text in the spinner and on select date or on click ok button in a date control. OnUserInteraction() method ...
0
votes
3answers
44 views
Android Tabs with ListActivity BackButton
I have 3 Tabs
Tab1,Tab2,Tab3
public Class TabLayout extends TabActivity {
Tab1,Tab2,Tab3
}
Each Tab Contains one ListActivity
that means
Tab1>>>Tab1ListActivity(List with Image and Text)
...
0
votes
3answers
136 views
Android table layout with textviews
I have my layout file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
...
0
votes
7answers
75 views
How to display 2 textviews in the same line in Android
I have my layout xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
...