ratingbar

Android - How to use ratingbar in listview to send data into mysql?

狂风中的少年 提交于 2019-12-14 04:23:27
问题 anyone know how to send data using ratingbar in listview ? i have a same issues with this link, and i tried to find the answer, but i still not solved it,,and also i've been checked all link their suggested before, i want to know how can he solved the problem using ViewBinder , but i cant add comment because it's need 50++ rep to comment, so i need more example how to send data from android into MySQL using ratingbar by JSON id anyone can suggest me? Here is my code to display but not yet

trouble accessing inflated ratingBar in Android

江枫思渺然 提交于 2019-12-13 06:27:16
问题 I have an async task that check if a user has a certain item, by checking a database. If they have an item then I inflate a rating bar, if not I inflate a button so they can add the item. I inflate the rating bar in an class which extends asyncTask with: //inflate star rater LayoutInflater mInflater = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); LinearLayout addButton = (LinearLayout)((Activity) c).findViewById(R.id.addBeerLayout); addButton.addView(mInflater.inflate(R

Android Screen-size and Screen-density Image Selection

末鹿安然 提交于 2019-12-12 15:54:11
问题 I am having problems when trying to use multiple horizontal images on different size devices. I have 7 separate Ratingbars, each using a different custom image. I have scaled all the images and placed them into their respective dpi drawable folders. The problem I'm having is that on the xlarge mdpi screen (top left of the image below), they fit perfectly, but when I'm viewing them on a smaller screens, the entire 7 ratingbars are too wide to fit within the bounds of the device, as shown below

RatingBar getting stretched when setting drawable

╄→гoц情女王★ 提交于 2019-12-12 04:41:11
问题 When I am setting progressDrawable to RatingBar its display streched like below image, xml code is: <RatingBar android:id="@+id/rating_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:isIndicator="true" android:numStars="5" android:progressDrawable="@drawable/ratingstars" android:stepSize="1.0" /> ratingstars.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+android:id

Custom Image Rating Bar - secondaryProgress and Progress drawables are superposing, help me ! (code and hypothesis included)

泄露秘密 提交于 2019-12-12 03:06:16
问题 EDIT: I removed the line <item android:id="@+android:id/secondaryProgress" android:drawable="@drawable/ratingbar_full_empty_sc"/> and it cancels the poor efect. so it is indeed a superpostion issue. Now the feeling is very clumsy to give half rating. Anyone has a real solution? Please... Original Post I try to implement a rating bar but I have some issue with the half filled ones. I modify existing code and follow this post Here is the strange result : ever heard of that problem? I am posting

ANDROID - RatingBar in ListView example required for send data into MySQL

独自空忆成欢 提交于 2019-12-12 03:03:43
问题 I am just a beginner in programming languages android, my project obtained from internet, and now i got the code to display a value from MySQL and using RatingBar for send the value of ratingbar itself, and i need help how to use it! can someone explain how to use ratingbar in listview ?? i'd create a layout like this : |------------------| | TextView | ---> Questionare question obtained from server (id 1) | * * * * * | ---> Rating Bar the value |------------------| | TextView | --->

ANDROID - using RatingBar in ListView to send data at MySQL

旧巷老猫 提交于 2019-12-12 02:22:44
问题 I'm just newbie about Android and sorry if my question is not valuable i've create a layout like this : |------------------| | TextView | ---> Text obtained from server (id 1) | * * * * * | ---> Rating Bar the value |------------------| ---> ListView | TextView | ---> Text obtained from server (id 2) | * * * * * | ---> Rating Bar the value |------------------| ---> ListView | TextView | ---> Text obtained from server (id 3) | * * * * * | ---> Rating Bar the value | | | |Button| | |___________

Ratingbar - how to?

半世苍凉 提交于 2019-12-11 16:53:49
问题 rate = (TextView) findViewById(R.id.puan); rb = (RatingBar) findViewById(R.id.ratingBar); rb.setOnRatingBarChangeListener(new RatingBar.OnRatingBarChangeListener() { @Override public void onRatingChanged(RatingBar ratingBar, float rating, boolean b) { final float numStars = ratingBar.getRating(); editor = wm.edit(); editor.putFloat("numStars", rating); editor.commit(); float ratings = wm.getFloat("numStars", 0); rate.setText(rating + "/" + String.valueOf(ratings)); } }); wm =

Ratingbar layout_centerVertical property not work after set progressDrawable

喜夏-厌秋 提交于 2019-12-11 07:13:05
问题 I am creating custom RatingBar using this property android:progressDrawable="@drawable/ratingstars" When I apply this property, it automatically add some more space. So, I want to remove unnecessary space. if I remove this property, I got the default RatingBar, so please, help me. Here is the screenshot, so you can understand better. Here is my xml file <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" android

RatingBar Theme working in Marshmallow but not in Lollipop

冷暖自知 提交于 2019-12-11 05:45:07
问题 I am trying to style my RatingBar with the following code: <style name="RatingBarfeed" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorControlNormal">@color/white</item> <item name="colorControlActivated">@color/duskYellow</item> </style> And in layout.xml I am using the following code: <android.support.v7.widget.AppCompatRatingBar android:theme="@style/RatingBarfeed" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?android:attr