Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create an landing view for my application a user log in they need to land on this activity page (Image 1) if they click on any of the icon they will be take to the activity page of that activity. I want it needed to be change when user turn their screen to vertical or horizontal. But I don't know where to start.
Below I have added two images to show what I want to implement in my application. This is for my college project. In the landing view it have alert box and another box text from MySQL database but I am stuck in all points.
Image 1
Image 2
what you need is a dashboard activity/ fragment...
something like this.
the rotation of the screen is not a big problem, in fact, with the sdk you can design your activities and define behaviours of completely other layouts depending on the screen size, orienttation etc...
The work to do is not complicated but you need to do couple of stuff first, (define some layouts, classese etc,)
my recomendation is to take a look at this tutorial, and develope your app by following this steps
1 -
you can do it by set ImageButton in your main layout when click in any image will open new layout
show this link is simple code but he use button you can make some code and use ImageButton not Button only convert type name from button to ImageButton
this is link= : https://stackoverflow.com/a/10936133/4967569
2 -
screen to vertical or horizonta
i think you need use any size by Formula "dp"
3 -
sorry i cant help you in Database I have No experience
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
I want to develop an android app and my app must show a matrix of elements where some are connected by a line (like paths). I'm programmer but I don't have a clear idea on how to do this (the graphical part) because still I'm starting in android development, but if you have an idea please to resolve this graphical problem, give me some help then I would research more about it.
Note: I want to create an app for my college, where an student could mark their passed courses, and there are courses that must be marked (passed) to mark others and know their progress on the career.
Like this image..
Use Grid View because GridView is a ViewGroup that displays items in a two-dimensional, scrollable grid. The grid items are automatically inserted to the layout using a ListAdapter. to Achieve your goal you must use custom grid view to make that but am not sure about the lines.
check out this tutorials it would help to make that .
Example 1:
Example 2
Example 3:
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So i'm having some issues with getting my application to look the way i want it to.
So the first issue i'm having is, i want to have small icons on the left side which is always visable to the end user. And they have the option to take it out (pull the icons to the right), and look what they do (i'll add text on the left side of the icons). What kind of view would i have to use?
Also whenever i try to make icons they always get a grey background eventhough i have transparent background in ps.
finally, how do i get a photo to show up from a website? i'll have my own database of photos i want to be shown, but how do i get those to appear? i tried things such as imageview, but that's something different..
Thanks in advance
For partially visible navigation drawer, follow the link : Android - How to implement a NavigationDrawer that is partially visible at all times?
For clickable icons, you are probably using android:src for ImageButton. Instead set image as android:background
For images to be loaded from the web, use WebView and simply using <img src="example.com/xyz.jpg"> will do the work.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have to create a chat module in my android app. I created the layout for that and used a 9 patch image for displaying messages. Now I want to know how the messages are displayed in the left and right areas of the screen.
This is my screen
https://github.com/redsolution/xabber-android
This is XMPP based chat application source code.
this is a very nice opensource chat Application. have a look at this code.You will surely get an idea.
Create a custom Listview and display your messages on right and other messages on left vice versa...for this you need to create custom XML and give left align and right align for the views(Messages).
For this inside your Adapter class in data structure you passed to adapter maintain the variable for message whether its own message(Right side) or others mesage (Left side) and now inside your getview() method you can set the gravity of that window or textview LEFT or RIGHT
Use textview.setLayoutGravity left/right
HOpe this helps
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to style my sign out button so it looks like the Google Play Service sign in button. Anyone have an ide how I can style a button like the screenshot below. Im using the standard google play sign in button. What Im after is a red (#dd4b39) button with an custom icon, a separator and a white text in the right size and padding. Anyone got a example how to do this?
There are 2 ways to do it.
1st is to get it done through the web designer and apply the back
round png to the button
2nd is to use 2 buttons and align them side by side and on first
button write text g+ and on second button write Whatever text you want
and apply red background color to both
I solved it by using the nine patch image I found on this page, https://developers.google.com/+/branding-guidelines and used them as a background drawable on a regular button.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
hello Hello everyone i ,I have a problemwith finding , I wish to find a solution...
I have developed a background image so it fits in all types of phone or and tablet types.
my image looks like a multiple joint button
now i I want multiple onclick events on that button(that is a part of image) look on that image
can anybody help me??
thanks in advance.....
in this image i want click events on about/stats/offers/help and also in middle tag
put buttons layouts or whatever you wish on the image set that as invisible(visibility.invisible) put on click for the invisible obj
Used multiple layouts in one screen and used the contents from
http://developer.android.com/reference/android/widget/Button.html