{"id":19317902,"url":"https://github.com/queeniecplusplus/android_review_1_app","last_synced_at":"2026-03-02T11:02:10.835Z","repository":{"id":104588063,"uuid":"334302867","full_name":"QueenieCplusplus/Android_Review_1_app","owner":"QueenieCplusplus","description":"我的媽祖關公孫悟空卡通版本的抽籤應用程式（看看今日運勢如何，祝你好手氣！）","archived":false,"fork":false,"pushed_at":"2021-01-30T06:02:16.000Z","size":20335,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-17T11:04:50.752Z","etag":null,"topics":["random","svg","xml"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru/blob/master/README.md#google-android-kotlin-溫故安卓---計畫復甦","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-30T01:28:49.000Z","updated_at":"2022-02-25T03:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c4c8b7d-c5ca-46ba-96fa-a44acfea0074","html_url":"https://github.com/QueenieCplusplus/Android_Review_1_app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QueenieCplusplus/Android_Review_1_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FAndroid_Review_1_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FAndroid_Review_1_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FAndroid_Review_1_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FAndroid_Review_1_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/Android_Review_1_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FAndroid_Review_1_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29999223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T09:59:02.300Z","status":"ssl_error","status_checked_at":"2026-03-02T09:59:02.001Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["random","svg","xml"],"created_at":"2024-11-10T01:16:35.779Z","updated_at":"2026-03-02T11:02:10.799Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android_Review_1_app\n我的媽祖關公孫悟空卡通版本的抽籤應用程式（看看今日運勢如何，祝你好手氣！）\n\n  ![](https://github.com/QueenieCplusplus/Android_Review_1_app/raw/main/output1.png)\n\n![](https://github.com/QueenieCplusplus/Android_Review_1_app/raw/main/output2.png)\n\n  ![](https://github.com/QueenieCplusplus/Android_Review_1_app/raw/main/output3.png)\n\n![](https://github.com/QueenieCplusplus/Android_Review_1_app/raw/main/outputX.png)\n\n* 畫面佈局\n\n        \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n        \u003candroidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n            xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n            xmlns:tools=\"http://schemas.android.com/tools\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            tools:context=\".MainActivity\"\u003e\n\n            \u003cTextView\n                android:id=\"@+id/rollResultTxt\"\n                android:gravity=\"center_horizontal\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                app:layout_constraintLeft_toLeftOf=\"parent\"\n                app:layout_constraintRight_toRightOf=\"parent\"\n                android:textSize=\"30dp\"\n                app:layout_constraintBottom_toTopOf=\"@+id/rollResultImg\"\n                /\u003e\n\n\n            \u003cImageView\n                android:id=\"@+id/rollResultImg\"\n                android:layout_marginTop=\"100dip\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                app:layout_constraintBottom_toBottomOf=\"parent\"\n                app:layout_constraintLeft_toLeftOf=\"parent\"\n                app:layout_constraintRight_toRightOf=\"parent\"\n                app:layout_constraintTop_toTopOf=\"parent\" /\u003e\n\n        \u003c/androidx.constraintlayout.widget.ConstraintLayout\u003e\n\n* 邏輯撰寫\n\n         package com.katepatty.luckyroller\n\n      import androidx.appcompat.app.AppCompatActivity\n      import android.os.Bundle\n      import android.util.Log.d\n      import android.widget.ImageView\n      import android.widget.TextView\n      import kotlinx.android.synthetic.main.activity_main.*\n\n      class MainActivity : AppCompatActivity() {\n\n          override fun onCreate(savedInstanceState: Bundle?) {\n              super.onCreate(savedInstanceState)\n              setContentView(R.layout.activity_main)\n\n              roller()\n\n          }\n\n          private fun roller(){\n\n              // 宣告容器變數\n              val outputStr: TextView = findViewById(R.id.rollResultTxt)\n              val outputImg: ImageView = findViewById(R.id.rollResultImg)\n\n              // 生出隨機值\n              val randomInt = (1..5).random()\n\n              // 將隨機值指派給容器變數的屬性中\n              //outputStr.text = randomInt.toString()\n              //rollResultTxt. got its method too\n\n              val randomTxt = when (randomInt){\n\n                  1 -\u003e \"好運連連\"\n                  2 -\u003e \"貴人加持\"\n                  3 -\u003e \"喜憂參半\"\n                  else -\u003e \"請回府，記得拜拜喔！下次再來玩～\"\n\n              }\n\n              val randomSrc = when (randomInt) {\n\n                  1 -\u003e R.drawable.notbad\n                  2 -\u003e R.drawable.luck\n                  3 -\u003e R.drawable.gotpower\n                  else -\u003e R.drawable.home\n\n              }\n              // below resId = 容器變數放回呼值\n              outputImg.setImageResource(randomSrc)\n              outputStr.setText(randomTxt)\n\n          }\n      }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fandroid_review_1_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fandroid_review_1_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fandroid_review_1_app/lists"}