Tagged Questions
6
votes
3answers
176 views
Android Custom Shape Button
How can i make a custom shaped clickable view or button in Android?
When I click , I want to avoid touching on an empty area .
please help. Thank you.
6
votes
3answers
172 views
custom listview scrolling is stuttering
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import ...
4
votes
5answers
939 views
saving state on compound view widgets
Question
How do you save view widget instance state when, by using XML-defined widget layouts, components of the individual widget instances all have the same ID?
Example
Take, for example, the ...
4
votes
2answers
198 views
Horizontal Menus
I want to create horizontal menu in android.
Android supports expandable list view that expands vertically but i want to expand menus horizontally. Please refer image
Description:
In the ...
4
votes
1answer
295 views
Android Circle Menu Like Catch Notes
I try to do circle menu like in this app.
In "expanded" mode i draw this component like follows:
<RelativeLayout android:id="@+id/bigCircle">
<!--color full borders-->
...
4
votes
2answers
287 views
Android: Multiple view children for custom view with existing layout
I have to build a more complex custom view in Android. The final layout should look like this:
<RelativeLayout>
<SomeView />
<SomeOtherView />
<!-- maybe more layout stuff ...
3
votes
1answer
455 views
android: how to add children from an xml layout into a custom view
In my xml layouts I have a custom view in which i will put some children like:
<com.proj.layouts.components.ScrollLayout
android:id="@+id/slBody"
android:layout_width="700dp"
...
3
votes
2answers
56 views
Weight doesn't work in a custom android component
I wanted to create a custom bottom button bar layout, I've created a xml file :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@android:style/ButtonBar"
...
3
votes
2answers
298 views
LinearLayout as custom button, OnClickListener never called
I've been using the common Android Button with both icon (drawableTop) and text. It works really poorly if you want to have a non-standard size button, so I decided to make a custom button with a ...
3
votes
2answers
719 views
How do I design a custom Android control and use it in Xml?
I understand how to create a custom Android control, and I believe I understand how to pull attributes for it from the Xml layout. I don't know, however, how to get any children elements from it.
...
3
votes
1answer
182 views
Stop Android from Layouting all my Views
I'm currently developing a tablet app which intensly uses the ViewPager Widget. I also got multiple Viewpagers on Screen at once.
Now I'm experiencing the following Problem:
If one ViewPager scrolls ...
2
votes
2answers
586 views
create a chatView layout in android
I'm creating a chat application and I'm thinking on ways to create the actual chat view.
I already have the layout for the chat window itself but I was thinking about how to implement the chat ...
2
votes
3answers
439 views
How to inflate a custom view class?
I have a class that extends view, that defines a custom drawing (a resistor). I want to click a button and add that view to the main layout.
so that I see the resistor, and if I click again it will ...
2
votes
1answer
324 views
Custom LinearLayout width - weight placing problem
I asked another questıon and after, I continued to this problem...
Firstly My first Question: how to Custom Button (has two TextFields) on Android
I extended a class form LinearLayout, and I add two ...
2
votes
2answers
40 views
how to set a onclicklistener for button inside the listview in android?
I have a listView having a button and a textView. How can I set onclicklistener for the button inside the listView?
Code Given below:
ListView.xml:
ListView lv1 = ...